



export default {
  components: {

  },
  props: {
    
  },
  data() {
    return {
      loading: false,
      finished: false,
      refreshing: false,
    }
  },
  watch: {
   
  },
  mounted() {
    
  },
  methods: {
  
    // 格式化表格数据
    formatData(arr, totalNum) {
      let _that = this;
      _that.tableObj.loading = false;
      if (totalNum == '0'||totalNum==null) {
          _that.tableObj.isNull = true;
      } else {
          _that.tableObj.isNull = false;
          // 添加序号
          arr.forEach((item, index) => {
              item.tableId = (_that.tableObj.currentPage - 1) * _that.tableObj.pageSize + (index + 1);
              for (let key in item) {
                  if (item[key] == null || item[key] == "") {
                      item[key] = "--"
                  }
              }
          })
          return arr;
      }
  }
}
}